﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RecursiveMethod
{
    class Program
    {
        static void Main(string[] args)
        {
        }


        /// <summary>
        /// 以下方法演示 计算 9！+8！+7！+。。。+2！+1！
        /// </summary>
        /// <param name="maxNumber"></param>
        /// <returns></returns>
        static private int GetValue(int maxNumber)
        {
            int resultHalf=1;
            if (maxNumber > 1)
            {
                resultHalf= GetValue(maxNumber-1);
            }

            return maxNumber * resultHalf;
        }

        //static private int GetValue2(int maxNumber)
        //{ 
            
        //}
    }
}
